package com.gaff.emp.core.modules.perm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("sys_dept")
public class SysDept {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer parentId;

    private String name;

    private Integer sort;

    @TableField(exist = false)
    private List<SysDept> subDepts;

    @TableField(exist = false)
    private String parentName;

}
